<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Repository path</title>
<style type="text/css">
	@IMPORT url("css/common.css");
</style>
<style type="text/css">
    @import "http://o.aolcdn.com/dojo/0.9.0/dijit/themes/tundra/tundra.css";
    @import "http://o.aolcdn.com/dojo/0.9.0/dojo/dojo.css"
</style>
<script type="text/javascript" src="http://o.aolcdn.com/dojo/0.9.0/dojo/dojo.xd.js"
            djConfig="parseOnLoad: true"></script>
<script type="text/javascript">
   dojo.require("dojo.parser");
   dojo.require("dijit.form.DateTextBox");
   dojo.require("dijit.form.NumberTextBox");
   dojo.require("dijit.form.Button");
</script>
<script type="text/javascript">
	function addPath(){
		window.location = '<s:url value="/manage/repositoryadd.do" includeParams="none"/>?path=' + dojo.byId('path').value;
	}
</script>
</head>
<body class="tundra" style="font-size: 13px;">
	<div class="bodywrap" style="text-align: left;">
		<div style="margin: 5px; padding: 5px; border: 1px solid #EEEEEE; line-height: 20px;line-height: 25px;">
			<div style="background-color: #DDDDDD; border: 1px solid #888888;">
			<a href="<s:url value="/manage/repositorylist.do" includeParams="none"/>">Refresh</a>
			</div>
			<s:iterator value="paths" status="st">
				<div>[<s:property value="#st.index"/>] <s:property /> <a href="<s:url value="/manage/repositorydelete.do" includeParams="none"/>?id=<s:property value="#st.index"/>">Remove</a></div>
			</s:iterator>
		</div>
		<div>
			<input type="text" requier="true" trim="true" dojoType="dijit.form.TextBox" name="path" id="path" />
			<button dojoType="dijit.form.Button" onClick="addPath();">Add</button>
		</div>
	</div>
</body>
</html>